package com.xiaozhengkeji.xiaozhengblog.events;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;


/**
 * 用户访问事件
 */
@Slf4j
@Getter
public class AccessLogEvent extends ApplicationEvent {
    String accessIp;
    String accessUrl;
    String accessParameter;
    String crossAddress;
    String accessMethod;
    String token;

    public AccessLogEvent(Object source, String accessIp, String accessUrl, String accessParameter, String crossAddress, String accessMethod, String token) {
        super(source);
        this.accessIp = accessIp;
        this.accessUrl = accessUrl;
        this.accessParameter = accessParameter;
        this.crossAddress = crossAddress;
        this.accessMethod = accessMethod;
        this.token = token;
    }
}
